Usage
Endpoint for challenge list checking-adding-removing
Endpoints related to adding-removing-checking a challenge listed address.
- POST api.bitninja.io/api/addIpToGreylist
- POST api.bitninja.io/api/deleteIpToGreylist
- POST api.bitninja.io/api/checkIpOnGreylist
Common details shared between ALL endpoints
They all require a JWT token for authorization. This will require the license key you can see at https://admin.bitninja.io/main
- https://api.bitninja.io/v2/swagger/#/Authentication %3A%3A Login/post_v2_authentication_login_license
If we include a "result_mode=json" GET parameter, the result will be in json, that will look like this:
{ result: string }
PHP status code does NOT change even if validation fails or the action fails. It will always return 200.
Before every action carried out, the API will check if it is indeed a PUBLIC valid IPV4 address or not.
The limits are as follows:
- challenge list additions/day: 6000.
- challenge list removals /day: 1000.
tip
The API will NOT forward the request if the IP is on our global allow list (e.g. BitNinja's API IP addresses)